import Mock from 'mockjs'

const top = [{
  label: "首页",
  path: "/wel/index",
  icon: 'el-icon-menu',
  meta: {
    i18n: 'dashboard',
  },
  parentId: 0
},
  {
    label: "1688商家工作台官网",
    icon: 'el-icon-document',
    meta: {
      i18n: 'website_1688',
    },
    path: "https://work.1688.com/",
    parentId: 1
  },
  {
    label: "1688生意参谋",
    icon: 'el-icon-document',
    meta: {
      i18n: 'website_1688_sycm',
    },
    path: "https://sycm.1688.com/ms/rival/searchTermQuery",
    parentId: 1
  }
]
export default ({mock}) => {
  if (!mock) return;
  Mock.mock('/user/getTopMenu', 'get', () => {
    return {
      data: top
    }
  })

}
